def row_to_dict(row):
    result = {}
    for key in row.__table__.columns.keys():
        value = getattr(row, key)
        result[key] = str(value)
    return result
